package com.cooge.sharevideo.web.pojo;
// default package

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Episode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "episode", catalog = "sharevideo")
public class Episode implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7666429851264467002L;
	private Long id;
	/**
	 * 片名
	 */
	private String title;
	/**
	 * 更新时间
	 */
	private Timestamp updatetime;
	/**
	 * 网址,特别指定的时候需要
	 */
	private String url;
	/**
	 * 海报地址
	 */
	private String poster;
	/**
	 * 评分
	 */
	private Double grade;
	/**
	 * 地区
	 */
	private String area;
	/**
	 * 上映时间
	 */
	private Timestamp playertime;
	/**
	 * 演员
	 */
	private String actor;
	/**
	 * 播放量
	 */
	private Long playnum;
	/**
	 * 其他名称
	 */
	private String anothername;

	// Constructors
	private String introduction;

	/** default constructor */
	public Episode() {
	}

	/** full constructor */
	public Episode(String title, Timestamp updatetime, String url,
			String poster, Double grade, String area, Timestamp playertime,
			String actor, Long playnum, String anothername) {
		this.title = title;
		this.updatetime = updatetime;
		this.url = url;
		this.poster = poster;
		this.grade = grade;
		this.area = area;
		this.playertime = playertime;
		this.actor = actor;
		this.playnum = playnum;
		this.anothername = anothername;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "title", length = 200)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "updatetime", length = 19)
	public Timestamp getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Timestamp updatetime) {
		this.updatetime = updatetime;
	}

	@Column(name = "url", length = 200)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "poster", length = 200)
	public String getPoster() {
		return this.poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}

	@Column(name = "grade", precision = 22, scale = 0)
	public Double getGrade() {
		return this.grade;
	}

	public void setGrade(Double grade) {
		this.grade = grade;
	}

	@Column(name = "area", length = 45)
	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "playertime", length = 19)
	public Timestamp getPlayertime() {
		return this.playertime;
	}

	public void setPlayertime(Timestamp playertime) {
		this.playertime = playertime;
	}

	@Column(name = "actor")
	public String getActor() {
		return this.actor;
	}

	public void setActor(String actor) {
		this.actor = actor;
	}

	@Column(name = "playnum")
	public Long getPlaynum() {
		return this.playnum;
	}

	public void setPlaynum(Long playnum) {
		this.playnum = playnum;
	}

	@Column(name = "anothername")
	public String getAnothername() {
		return this.anothername;
	}

	public void setAnothername(String anothername) {
		this.anothername = anothername;
	}
	@Column(name = "introduction")
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

}